package cn.stylefeng.guns.core.common.node;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel
public class JsonResult<T> {
	
	public JsonResult(){}
	
	public JsonResult(int resultCode, String resultMsg, Object resultData){
		this.resultCode = resultCode;
		this.resultMsg = resultMsg;
		this.resultData = resultData;
	}
	
	@ApiModelProperty("请求结果码 0-成功 1-失败")
	private int resultCode;

	@ApiModelProperty("请求结果消息")
	private String resultMsg;
	
	@ApiModelProperty("请求返回数据")
	private Object resultData;

	public int getResultCode() {
		return resultCode;
	}

	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	public Object getResultData() {
		return resultData;
	}

	public void setResultData(Object resultData) {
		this.resultData = resultData;
	}
	
}

